package com.source.barcodeMachineStatus.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.source.barcodeMachineStatus.entity.BarcodeMachineAlert;
import com.source.barcodeMachineStatus.mapper.BarcodeMachineAlertMapper;
import com.source.barcodeMachineStatus.service.BarcodeMachineAlertService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.source.barcodeMachineStatus.vo.BarcodeMachineAlertVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fengq
 * @since 2021-02-27
 */
@Service
public class BarcodeMachineAlertServiceImpl extends ServiceImpl<BarcodeMachineAlertMapper, BarcodeMachineAlert> implements BarcodeMachineAlertService {

    @Autowired
    private BarcodeMachineAlertMapper barcodeMachineAlertMapper;

    @Override
    public BarcodeMachineAlertVo getOneVoById(String alterId) {
        return barcodeMachineAlertMapper.getOneVoById(alterId);
    }

    @Override
    public IPage<BarcodeMachineAlertVo> getPageVo(Page<BarcodeMachineAlertVo> page) {
        return barcodeMachineAlertMapper.getPageVo(page);
    }

    @Override
    public IPage<BarcodeMachineAlertVo> getLikeVo(Page<BarcodeMachineAlertVo> page, String keyword) {
        return barcodeMachineAlertMapper.getLikeVo(page,keyword);
    }

}
